public class PassengerCar extends Car {
    private String seat;
    public PassengerCar(){}

    public PassengerCar(String name, String plate, double money, int day, String seat) {
        super(name, plate, money, day);
        this.seat = seat;
    }

    public String getSeat() {
        return seat;
    }

    public void setSeat(String seat) {
        this.seat = seat;
    }

    @Override
    public void show() {
        if (getDay()<3){
            setMoney(getMoney()*getDay());
        }
        else if (3<=getDay()&&getDay()<7){
            setMoney(getMoney()*getDay()*0.9);
        }
        else if (7<=getDay()&&getDay()<30){
            setMoney(getMoney()*getDay()*0.8);
        }
        else if (30<=getDay()&&getDay()<150){
            setMoney(getMoney()*getDay()*0.7);
        }
        else if (150<=getDay()){
            setMoney(getMoney()*getDay()*0.6);
        }
    }
}
